import React from "react";
import LayoutView from "./views/Layout/LayoutView";
import LoginView from "./views/Login/LoginView";
import "../src/App.css";

import { Route, Routes } from "react-router-dom";

import PrivateRoute from "./components/PrivateRoute";

function App() {
  return (
    <div className="App">
      <Routes>
        <Route
          path="/*"
          element={<PrivateRoute component={LayoutView}></PrivateRoute>}
        />
        <Route path="/login" element={<LoginView />} />
      </Routes>
    </div>
  );
}

export default App;
